package com.example.fourm.exception;


import com.example.fourm.common.AppResult;

public class ApplicationException extends RuntimeException {
    private AppResult errorResult;


    public ApplicationException(AppResult errorResult) {
        super(errorResult.getMessage());
        this.errorResult = errorResult;
    }

    public AppResult getErrorResult() {
        return errorResult;
    }

    public ApplicationException(Throwable cause) {
        super(cause);
        //this.result = result;
    }

    public ApplicationException(String message, Throwable cause) {
        super(message, cause);
        //this.result = result;
    }

    public ApplicationException(String message) {
        super(message);
       // this.result = result;
    }
}
